def remove_chars_at_intervals(s, interval):
    result = ''
    for i in range(len(s)):
        if (i + 1) % interval != 0:
            result += s[i]
    return result

s = "abcdefghijklmn"
interval = 3
print(remove_chars_at_intervals(s, interval))